/* ============================================================================
   content.css — дополнительные стили контента
   ============================================================================ */

/* ============================================================================
   Иконки избранного (♥) и уведомлений (🔔) — неоновый стиль
   ============================================================================ */

/* Сердечко — базовое: тусклый контур */
.fav-heart {
    color: rgba(156, 163, 175, 0.5); /* gray-400/50 */
    transition: color 0.3s, filter 0.3s, stroke-width 0.3s;
    fill: none !important;
    stroke-width: 2.5 !important; /* Делаем контур чуть толще по умолчанию */
}

/* Сердечко — активное: неоновый красный контур */
.fav-heart.active {
    color: #f43f5e; /* rose-500 */
    /* Усиливаем неоновое свечение (3 слоя разной плотности) */
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.9))
            drop-shadow(0 0 10px rgba(244, 63, 94, 0.7))
            drop-shadow(0 0 20px rgba(244, 63, 94, 0.4));
    fill: none !important;
    stroke-width: 2.5 !important;
}

/* Hover для неактивного сердечка */
.fav-heart:not(.active):hover,
button:hover .fav-heart:not(.active),
.group:hover .fav-heart:not(.active) {
    color: rgba(244, 63, 94, 0.8);
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.5));
}

/* Колокольчик — базовый: тусклый контур */
.notice-bell {
    color: rgba(156, 163, 175, 0.4); /* gray-400/40 */
    transition: color 0.3s, filter 0.3s, stroke-width 0.3s;
    stroke-width: 2.5 !important; /* Утолщаем базовый контур */
}

/* Колокольчик — активный: неоновый пурпурный контур */
.notice-bell.active {
    color: #c084fc; /* purple-400 */
    /* Экстра-яркое свечение для пурпурного цвета */
    filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.9))
            drop-shadow(0 0 10px rgba(192, 132, 252, 0.7))
            drop-shadow(0 0 20px rgba(192, 132, 252, 0.4));
    stroke-width: 2.5 !important;
}

/* Hover для неактивного колокольчика */
.notice-bell:not(.active):hover,
button:hover .notice-bell:not(.active),
.group:hover .notice-bell:not(.active),
.group\/bell:hover .notice-bell:not(.active) {
    color: rgba(192, 132, 252, 0.6);
}

.owner-message-modal {
    z-index: 300;
    background: rgba(0, 0, 0, 0.8);
}

/* Cyan-кнопка связи с владельцем сервера в стиле карточки «Я мерчант» */
.owner-message-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04));
    color: #22d3ee;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.owner-message-icon-btn:hover {
    border-color: rgba(34, 211, 238, 0.7);
    color: #67e8f9;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
}
.owner-message-header-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.owner-message-detail-btn {
    padding: 12px;
    border-radius: 12px;
}
.session-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.session-owner-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04));
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.session-owner-message-btn:hover {
    border-color: rgba(34, 211, 238, 0.7);
    color: #ffffff;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
}
.owner-message-email-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.45;
}
.owner-message-textarea:focus {
    border-color: #22d3ee;
}
.owner-message-email-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #06b6d4;
    flex-shrink: 0;
}
#owner-message-send:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ============================================================================
   Описание игры — краткий блок и модалка
   ============================================================================ */

.game-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-description-clamp p,
.whitespace-pre-line p {
    margin: 0 0 0.75em;
    line-height: 1.6;
}

.game-description-clamp p:last-child,
.whitespace-pre-line p:last-child {
    margin-bottom: 0;
}

.sysreq-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 13px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.sysreq-table thead th {
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
}

.sysreq-table tbody td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.sysreq-table tbody tr:last-child td {
    border-bottom: none;
}

.sysreq-table tbody tr:hover {
    background: rgba(34, 211, 238, 0.04);
}

.sysreq-table .sysreq-label {
    color: #9ca3af;
    font-weight: 700;
    white-space: nowrap;
    width: 1%;
}

.game-description-modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #22d3ee transparent;
}

.game-description-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.game-description-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.game-description-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.35);
    border-radius: 3px;
}

#game-description-modal > div {
    animation: game-description-modal-appear 0.2s ease-out;
}

@keyframes game-description-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================================================
   Рейтинг качества игры на ПК (play_rating)
   ============================================================================ */

.play-rating-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
}

.play-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(34, 211, 238, 0.16));
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.play-rating-badge-lg {
    min-width: 48px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
}

.play-rating-badge-empty {
    border-color: rgba(156, 163, 175, 0.28);
    background: rgba(15, 15, 17, 0.68);
    color: #9ca3af;
    box-shadow: none;
    text-shadow: none;
}

.play-rating-wrap:hover .play-rating-badge,
.play-rating-wrap:focus .play-rating-badge,
.play-rating-wrap:focus-within .play-rating-badge {
    border-color: rgba(34, 211, 238, 0.8);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.28), 0 0 28px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.play-rating-wrap:hover .play-rating-badge-empty,
.play-rating-wrap:focus .play-rating-badge-empty,
.play-rating-wrap:focus-within .play-rating-badge-empty {
    border-color: rgba(156, 163, 175, 0.5);
    color: #d1d5db;
    box-shadow: 0 0 14px rgba(156, 163, 175, 0.12);
}

.play-rating-floating-tooltip {
    position: fixed;
    z-index: 9999;
    width: 288px;
    max-width: min(288px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: #07070a;
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* ============================================================================
   Popup «Привяжите Telegram» — для уведомлений без привязки
   ============================================================================ */

.tg-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s, backdrop-filter 0.3s;
    padding: 16px;
}

.tg-prompt-overlay.visible {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.tg-prompt-card {
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.15),
                0 0 120px rgba(34, 211, 238, 0.08);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.tg-prompt-overlay.visible .tg-prompt-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.tg-prompt-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    animation: tg-prompt-pulse 2s ease-in-out infinite;
}

@keyframes tg-prompt-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
    50%      { box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(34, 211, 238, 0.15); }
}

.tg-prompt-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tg-prompt-text {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0 0 24px;
}

.tg-prompt-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tg-prompt-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 14px;
    color: #e5e7eb;
    transition: border-color 0.2s;
}

.tg-prompt-step:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.tg-prompt-step b {
    color: #c084fc;
}

.tg-prompt-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.tg-prompt-link {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, filter 0.2s;
}

.tg-prompt-link:hover {
    color: #67e8f9;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}

.tg-prompt-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tg-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5),
                0 0 60px rgba(168, 85, 247, 0.2);
}
